﻿<Window x:Class="AutoLoL.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:AutoLoL"
        xmlns:tabs="clr-namespace:AutoLoL.Tabs"
        xmlns:converters="clr-namespace:AutoLoL.Converters"
        xmlns:controls="clr-namespace:AutoLoL.Controls"
        xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
        x:Name="Window"
        Width="820"
        Height="670"
        MinWidth="820"
        MinHeight="670"
        Icon="/Icon.ico"
        ResizeMode="CanResize" 
        Closing="Window_Closing" Loaded="Window_Loaded">
    <Grid>
        <DockPanel LastChildFill="True">
            <TabControl Name="RootTabControl">
                <TabControl.Items>
                    <TabItem>
                        <TabItem.Header>
                            <StackPanel Orientation="Horizontal">
                                <Image Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/home.png" />
                                <TextBlock Text="Start" FontWeight="Bold" FontSize="12" Margin="2" />
                            </StackPanel>
                        </TabItem.Header>
                        <DockPanel>
                            <ContentControl Name="FirstRunContentControl" Template="{StaticResource Notification}" DockPanel.Dock="Top" Margin="10 10 10 0" Visibility="Collapsed">
                                <Grid>
                                    <TextBlock Margin="5">
                                        This appears to be the first time you have launched AutoLoL.<LineBreak />
                                        You can import your old Mastery Builds using the Import button in the Settings tab.
                                    </TextBlock>
                                    <TextBlock HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="5">
                                        <Hyperlink Click="CloseHyperlink_Click">Close</Hyperlink>
                                    </TextBlock>
                                </Grid>
                            </ContentControl>
                            <ContentControl Name="LoadingContentControl" Template="{StaticResource Notification}" DockPanel.Dock="Top" Margin="10 10 10 0">
                                <Grid>
                                    <TextBlock VerticalAlignment="Center" Margin="5">
                                        AutoLoL is currently loading champion and item data.
                                    </TextBlock>
                                    <controls:LoadingControl HorizontalAlignment="Right" Margin="5" Width="24" />
                                </Grid>
                            </ContentControl>
                            <ContentControl Name="UpdateContentControl" Template="{StaticResource Notification}" DockPanel.Dock="Top" Margin="10 10 10 0" Visibility="Collapsed">
                                <TextBlock Margin="5">
                                    One or more updates are available for download.<LineBreak />
                                    Either run the Updater or download the latest version from CodePlex:<LineBreak />
                                    <Hyperlink Foreground="Black" NavigateUri="http://autolol.codeplex.com/releases/" RequestNavigate="Hyperlink_RequestNavigate">http://autolol.codeplex.com/releases/</Hyperlink>
                                </TextBlock>
                            </ContentControl>
                            <Grid Margin="5">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>
                                <GroupBox Header="Actions" Margin="5" Grid.Row="0" Grid.Column="1">
                                    <StackPanel>
                                        <StackPanel Orientation="Horizontal"  Margin="10">
                                            <Button ToolTip="Launch League of Legends" Width="60" Height="60" Click="LaunchButton_Click">
                                                <Image Width="48" Height="48" Source="pack://siteoforigin:,,,/Data/Images/Icons/lol.png" />
                                            </Button>
                                            <Button Name="BuildsButton" ToolTip="Open the Builds tab" Width="60" Height="60" Click="BuildsButton_Click" Margin="10 0 0 0">
                                                <Image Width="48" Height="48" Source="pack://siteoforigin:,,,/Data/Images/Icons/134.png" />
                                            </Button>
                                            <Button Name="TimersButton" ToolTip="Open / show the Timers window" Width="60" Height="60" Click="TimersButton_Click" Margin="10 0 0 0">
                                                <Image Width="48" Height="48" Source="pack://siteoforigin:,,,/Data/Images/Icons/smite.png" />
                                            </Button>
                                            <Button Name="UpdaterButton" ToolTip="Launch the Updater" Width="60" Height="60" Click="UpdaterButton_Click" Margin="10 0 0 0">
                                                <Image Width="48" Height="48" Source="pack://siteoforigin:,,,/Data/Images/Icons/135.png" />
                                            </Button>
                                        </StackPanel>
                                        <CheckBox Margin="10 0 0 5" Content="Auto Login enabled" Name="AutoLoginCheckBox" IsEnabled="False" />
                                    </StackPanel>
                                </GroupBox>
                                <GroupBox Header="News" Margin="5" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2">
                                    <WindowsFormsHost x:Name="NewsWindowsFormsHost" Visibility="Collapsed">
                                        <wf:WebBrowser x:Name="WebBrowser" />
                                    </WindowsFormsHost>
                                </GroupBox>
                                <StackPanel HorizontalAlignment="Right" Margin="10" VerticalAlignment="Bottom" Grid.Column="1" Grid.Row="2">
                                    <Image Cursor="Hand" Margin="10" HorizontalAlignment="Right" Source="pack://siteoforigin:,,,/Data/Images/Misc/codeplex.png" Width="230" MouseLeftButtonDown="CodeplexImage_MouseLeftButtonDown" />
                                    <Image Cursor="Hand" HorizontalAlignment="Right" Margin="0 0 10 10" Source="pack://siteoforigin:,,,/Data/Images/Misc/lol.png" Width="220" MouseLeftButtonDown="LolImage_MouseLeftButtonDown" />
                                    <TextBlock Width="400" TextAlignment="Center" TextWrapping="Wrap" Text="All data and images concerning League of Legends are property of Riot Games Inc. This application is not officially supported by Riot Games Inc." />
                                </StackPanel>
                            </Grid>
                        </DockPanel>
                    </TabItem>
                    <TabItem Name="SettingsTabItem">
                        <TabItem.Header>
                            <StackPanel Orientation="Horizontal">
                                <Image Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/icons/gear.png" />
                                <TextBlock Text="Settings" FontWeight="Bold" FontSize="12" Margin="2" />
                            </StackPanel>
                        </TabItem.Header>
                    </TabItem>
                    <TabItem Name="BuildsTabItem">
                        <TabItem.Header>
                            <StackPanel Orientation="Horizontal">
                                <Image Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/134.png" />
                                <TextBlock Text="Builds" FontWeight="Bold" FontSize="12" Margin="2" />
                                <controls:LoadingControl x:Name="BuildsTabLoadingControl" Margin="3 0 0 0" Width="16" Height="16" />
                            </StackPanel>
                        </TabItem.Header>
                    </TabItem>
                    <TabItem Name="KeyBindingsTabItem">
                        <TabItem.Header>
                            <StackPanel Orientation="Horizontal">
                                <Image Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/134.png" />
                                <TextBlock Text="Key Bindings" FontWeight="Bold" FontSize="12" Margin="2" />
                            </StackPanel>
                        </TabItem.Header>
                    </TabItem>
                    <TabItem Name="AutoChatTabItem">
                        <TabItem.Header>
                            <StackPanel Orientation="Horizontal">
                                <Image Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/balloon-left.png" />
                                <TextBlock Text="Auto Chat" FontWeight="Bold" FontSize="12" Margin="2" />
                            </StackPanel>
                        </TabItem.Header>
                    </TabItem>
                    <TabItem Name="ModelTabItem">
                        <TabItem.Header>
                            <StackPanel Orientation="Horizontal">
                                <Image Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/blocks.png" />
                                <TextBlock Text="Model Viewer" FontWeight="Bold" FontSize="12" Margin="2" />
                                <controls:LoadingControl x:Name="ModelTabLoadingControl" Margin="3 0 0 0" Width="16" Height="16" />
                            </StackPanel>
                        </TabItem.Header>
                    </TabItem>
                    <TabItem>
                        <TabItem.Header>
                            <StackPanel Orientation="Horizontal">
                                <Image Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/help.png" />
                                <TextBlock Text="About" FontWeight="Bold" FontSize="12" Margin="2" />
                            </StackPanel>
                        </TabItem.Header>
                        <tabs:HelpTab />
                    </TabItem>
                    <!--<TabItem>
                        <TabItem.Header>
                            <StackPanel Orientation="Horizontal">
                                <Image Width="16" Height="16" Source="pack://siteoforigin:,,,/Data/Images/Icons/bug.png" />
                                <TextBlock Text="Submit Bug" FontWeight="Bold" FontSize="12" Margin="2" />
                            </StackPanel>
                        </TabItem.Header>
                        <tabs:ContactTab />
                    </TabItem>-->
                </TabControl.Items>
            </TabControl>
        </DockPanel>
    </Grid>
</Window>
